package com.ruoyi.framework.redis;


/*redis 的所有key设置*/
public class RedisKey {

    /*redis初始过期时间 五天 一个小时*/
    public static final Long time = 435600L;

    /**/
    public enum mhName{
        name_all("name-list-all","漫画表所有数据储存类型list"),
        name_id("name-str-id-","漫画表单条数据储存类型string"),;


        private String key;
        private String value;

        mhName(String key, String value) {
            this.key = key;
            this.value = value;
        }

        public String getKey() {
            return key;
        }

        public java.lang.String getValue() {
            return value;
        }
    }
    /*首页的key*/
    public enum indexRedis {

        index_data("index-name-map-data","首页要加载的数据redis储存类型map"),
        sliding_data("sliding-name-list-data","首页要加载的数据redis储存类型map"),;


        private String key;
        private String value;

        indexRedis(String key, String value) {
            this.key = key;
            this.value = value;
        }

        public String getKey() {
            return key;
        }

        public java.lang.String getValue() {
            return value;
        }
    }

    /*分类key*/
    public enum classifyRedis {

        classify_data("mh-name-class","拼接字符串 ：mh-name-class-quanbu-12-2"),;


        private String key;
        private String value;

        classifyRedis(String key, String value) {
            this.key = key;
            this.value = value;
        }

        public String getKey() {
            return key;
        }

        public java.lang.String getValue() {
            return value;
        }
    }

    /*详细页面key*/
    public enum overRedis {

        over_mh_chapter("mhChapter-","拼接字符串 ：mh-name-class-quanbu-12-2"),

        recommend("recommend-","单个数据的推荐数据"),

        /*存储评论 redis key*/

        Comment_list_manhua_id("Comment-list-manhuan-id-","储存漫画一级评论，list存储：Comment-list-manhuan-id-漫画id"),

        Comment_list_manhua_superior_id("Comment-list-superior-id-","储存漫画二级评论，list存储：Comment-list-superior-id-漫画父级的id"),

        Comment_map_manhua_id("Comment-map-manhua-id-","储存漫画三级评论，map存储：Comment-map-manhua-id-漫画的id")
        ;

        private String key;
        private String value;

        overRedis(String key, String value) {
            this.key = key;
            this.value = value;
        }

        public String getKey() {
            return key;
        }

        public java.lang.String getValue() {
            return value;
        }


    }

    /*页数key*/
    public enum pictureRedis {

        mh_chapter_all("mh_chapter-All-","漫画所有篇章数据"),
        mh_page_img("mh_page-img-","漫画篇章页数"),;


        private String key;
        private String value;

        pictureRedis(String key, String value) {
            this.key = key;
            this.value = value;
        }

        public String getKey() {
            return key;
        }

        public java.lang.String getValue() {
            return value;
        }
    }


    /*评论表key*/
    public enum MhCommentRedis {

        name_str_id("MhComment-str-id-","评论表id储存。。"),;


        private String key;
        private String value;

        MhCommentRedis(String key, String value) {
            this.key = key;
            this.value = value;
        }

        public String getKey() {
            return key;
        }

        public java.lang.String getValue() {
            return value;
        }
    }

}
